home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / strtolwr < prev    next >
Internet Message Format  |  1995-03-31  |  3KB

  1. From comp.sys.hp48.d Tue Apr 30 21:53:48 1991
  2. Path: seq!ecsgate!mcnc!uvaarpa!haven.umd.edu!udel!wuarchive!sdd.hp.com!spool.mu.edu!uunet!munnari.oz.au!brolga!uqcspe!cs.uq.oz.au!grue
  3. From: grue@cs.uq.oz.au (Frobozz)
  4. Newsgroups: comp.sys.handhelds,comp.sys.hp48.d
  5. Subject: Convert a string to lower case
  6. Keywords: lower case
  7. Message-ID: <1073@uqcspe.cs.uq.oz.au>
  8. Date: 30 Apr 91 11:40:17 GMT
  9. Sender: news@cs.uq.oz.au
  10. Reply-To: grue@cs.uq.oz.au
  11. Followup-To: comp.sys.handhelds
  12. Organization: Computer Science Department, The University of Queensland, Brisbane, Australia
  13. Lines: 45
  14. Xref: seq comp.sys.handhelds:7579 comp.sys.hp48.d:20
  15.  
  16. hiya,
  17.  
  18.     After the success of my routine to convert a string to uppercase (it
  19. was fast wasn't it :-) and after a couple of requests to post a version that
  20. did the conversion the other way (i.e. from upper case to lower case), I decided
  21. to write the other version.  It should run as fast as the first program for
  22. most strings (the pathalogical case is different and it involves a multiply
  23. sign this time) and it is also very small.
  24.  
  25.  
  26.     This program checks for the existance and the correct type of its
  27. agruments and doesn't modify the passed string in-situ (this means things
  28. like undo will work and that the program is in general, well behaved).
  29. Any non-profit usage of this piece of code is permitted.  People, who want
  30. to use this in a for-profit venture should either contact me and get my
  31. permission first or write their own version (probably the latter if they
  32. are serious about it ;-)
  33.  
  34.  
  35.     Comments anybody?
  36.  
  37.  
  38. I include ther code in ASC-> format.  This string is 182 bytes long
  39. and has a checksum of # 7210h.  The object you get on the stack after
  40. running it through ASC-> has a size of 85.5 bytes and a checksum of
  41. # A308h.
  42.  
  43. "D9D20ECE81D0040D9D2075660CCD20380008FB9760147134164146819F2CECE8
  44. AAE4D71643104AE514A9EC0331B59EAD131FB9EAE131FD9EE51317D962C03102
  45. A6A148161CF8AF2C8F2D760142164808CB2130B2130803A"
  46.  
  47. At least it isn't one of those really chunky looking ASC-> programs
  48. several pages long ;-}
  49.  
  50.  
  51.                                 Pauli
  52. seeya
  53.  
  54. Paul Dale               | Internet/CSnet:            grue@cs.uq.oz.au
  55. Dept of Computer Science| Bitnet:       grue%cs.uq.oz.au@uunet.uu.net
  56. Uni of Qld              | JANET:           grue%cs.uq.oz.au@uk.ac.ukc
  57. Australia, 4072         | EAN:                          grue@cs.uq.oz
  58.                         | UUCP:           uunet!munnari!cs.uq.oz!grue
  59. f4e6g4Qh4++             | JUNET:                     grue@cs.uq.oz.au
  60. --
  61.  
  62.